package com.lw.service;

import com.lw.mapper.UserMapper;
import com.lw.mapper.VideoInfoMapper;
import com.lw.pojo.Users;
import com.lw.pojo.VideoInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("UserServiceImpl")
public class UserServiceImpl {

    @Autowired
    private UserMapper userMapper;

    public boolean queryUsernameIsExist(String userName){
        Users users = new Users();
        users.setUsername(userName);

        int num = this.userMapper.selectCount(users);
        if(num>0){
            return false;
        }
        return true;
    }

}
